<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>请假记录</title>
<meta name="description" content="这是一个 index 页面">
<meta name="keywords" content="index">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="renderer" content="webkit">
<meta http-equiv="Cache-Control" content="no-siteapp" />
<link rel="icon" type="image/png" href="assets/i/favicon.png">
<link rel="apple-touch-icon-precomposed"
	href="assets/i/app-icon72x72@2x.png">
<meta name="apple-mobile-web-app-title" content="Amaze UI" />
<link rel="stylesheet" href="assets/css/amazeui.min.css" />
<link rel="stylesheet" href="assets/css/admin.css">
<link rel="stylesheet" href="assets/css/app.css">
</head>

<body>


	<!--头部  -->
	<jsp:include page="/common/head.jsp"></jsp:include>
	<!--左边菜单栏  -->
	<jsp:include page="student_menu.jsp"></jsp:include>



	<div class="tpl-portlet-components">

		<div class="portlet-title">
			<div class="caption font-green bold">
				<span class="am-icon-code"></span> 请假记录
			</div>
		</div>

		<div class="tpl-block">
			<div class="am-g"></div>
			<div class="am-g">
				<div class="am-u-sm-12">

					<form class="am-form">
						<table class="am-table am-table-striped am-table-hover table-main">
							<thead>
								<tr>
									<th class="table-id">ID</th>
									<th class="table-title">学号</th>
									<th class="table-type">姓名</th>
									<th class="table-author am-hide-sm-only">级别</th>
									<th class="table-author am-hide-sm-only">班级</th>
									<th class="table-date am-hide-sm-only">请假日期</th>
									<th class="table-date am-hide-sm-only">状态</th>
									<th class="table-date am-hide-sm-only">操作</th>
								</tr>
							</thead>
							<c:forEach items="${sessionScope.applylist}" var="applylist">
								<tbody>
									<tr>
										<td>${applylist.aid}</td>
										<td>${applylist.l_s_card}</td>
										<td>${applylist.s_username}</td>
										<td class="am-hide-sm-only">${applylist.g_name}</td>
										<td class="am-hide-sm-only">${applylist.c_name}</td>
										<td class="am-hide-sm-only">${applylist.l_begintime}</td>
										<c:choose>
											<c:when test="${applylist.status == 0 }">
												<td class="am-hide-sm-only">待审核</td>
											</c:when>
											<c:when test="${applylist.status == 1 }">
												<td class="am-hide-sm-only">请假失败</td>
											</c:when>
											<c:when test="${applylist.status == 2 }">
												<td class="am-hide-sm-only">待审批</td>
											</c:when>
											<c:when test="${applylist.status == 3 }">
												<td class="am-hide-sm-only">未销假</td>
											</c:when>
											<c:otherwise>
												<td class="am-hide-sm-only">已销假</td>
											</c:otherwise>
										</c:choose>
										<td>
											<div class="am-btn-toolbar">
												<div class="am-btn-group am-btn-group-xs">
													<c:choose>
														<c:when test="${applylist.status == 0 || applylist.status == 1 }">
															<a href="ApplyServlet?method=Delete_Apply&aid=${applylist.aid}">
																<span
																class="am-btn am-btn-default am-btn-xs am-text-secondary">删除</span>
															</a>
															<a href="ApplyServlet?method=Show_Apply_Update_Detail&aid=${applylist.aid}">
																<span
																class="am-btn am-btn-default am-btn-xs am-text-secondary">修改</span>
															</a>
														</c:when>
														<c:otherwise>
															<a href="ApplyServlet?method=Show_Apply_Detail&aid=${applylist.aid}">
																<span
																class="am-btn am-btn-default am-btn-xs am-text-secondary">查询</span>
															</a>
														</c:otherwise>

													</c:choose>
												</div>
											</div>
										</td>
									</tr>
								</tbody>
							</c:forEach>
						</table>
						<hr>
					</form>

				</div>

			</div>
		</div>
		<div class="tpl-alert"></div>
	</div>


</body>

</html>